﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>@ViewBag.Title-Todo369</title>
    <link href="/res/layui/css/layui.css" rel="stylesheet" />
    <link href="/res/css/global.css" rel="stylesheet" />
    @RenderSection("style", false)
</head>
<body>

    <!--Header-->
    <div class="fly-header layui-bg-black">
        <div class="layui-container">
            <a class="fly-logo" href="/">
                <i class="layui-icon layui-icon-share" style="font-size:50px;"></i>
                <span style="line-height:16px;font:100 20px '微软雅黑 Light';">Todo369</span>
            </a>
            <ul class="layui-nav fly-nav layui-hide-xs">
                <li class="layui-nav-item layui-hide-xs">
                    <a href="https://todo369.top/blog" target="_blank"><i class="layui-icon layui-icon-template-1"></i>博客</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="https://todo369.top/zaojiao" target="_blank"><i class="layui-icon layui-icon-star"></i>早教启蒙</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="~/Trends"><i class="layui-icon layui-icon-log"></i>随笔</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="~/Comment"><i class="iconfont icon-jiaoliu"></i>留言</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="~/Util"><i class="layui-icon layui-icon-util"></i>工具</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="~/SysUpdateLog"><i class="layui-icon layui-icon-tips"></i>系统更新日志</a>
                </li>
            </ul>
            <ul class="layui-nav fly-nav-user">
                @if (User.Identity.Name != null)
                {
                    <li class="layui-nav-item">
                        <a class="fly-nav-avatar" href="~/user/out?returnUrl=@this.Context.Request.Path.Value">
                            @User.Identity.Name
                            <cite class="layui-hide-xs">
                            </cite>
                            <img src="@User.Claims.Where(p => p.Type == "avator").FirstOrDefault()?.Value">
                        </a>
                        <dl class="layui-nav-child">
                            @*<dd><a href="/Account/Index"><i class="layui-icon">&#xe620;</i>用户中心</a></dd>
                                <dd><a href="/Account/Manage"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                                <dd><a href="/Admin/Home"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>后台管理</a></dd>
                                <dd><a href=""><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
                                <hr style="margin: 5px 0;">*@
                            <dd style="color:#5FB878;text-align:center;"><span>点击头像注销</span></dd>
                        </dl>
                    </li>
                }
                else
                {
                    <li class="layui-nav-item">
                        <a href="~/user/login?provider=QQ&returnUrl=@this.Context.Request.Path.Value"><i class="layui-icon layui-icon-login-qq" style="font-size:30px;"></i></a>
                    </li>
                }
                <li class="layui-nav-item layui-hide-sm">
                    <div class="layui-hide-sm">
                        <span class="fly-search"><i class="layui-icon">&#xe615;</i></span>
                    </div>
                </li>
                <li class="layui-nav-item layui-hide-sm">
                    <a href="javascript:;"><i class="layui-icon" style="font-size:30px;">&#xe671;</i></a>
                    <dl class="layui-nav-child">
                        <dd><a href="https://todo369.top/blog" target="_blank"><i class="layui-icon layui-icon-template-1"></i>博客</a></dd>
                        <dd><a href="https://todo369.top/zaojiao" target="_blank"><i class="layui-icon layui-icon-star"></i>早教启蒙</a></dd>
                        <dd><a href="/Trends/Index"><i class="layui-icon layui-icon-log"></i>动态</a></dd>
                        <dd><a href="/Comment/Index"><i class="iconfont icon-jiaoliu"></i>留言</a></dd>
                        <dd><a href="/Util/Index"><i class="layui-icon layui-icon-util"></i>工具</a></dd>
                        <dd><a href="/Home/SystemLog"><i class="layui-icon layui-icon-tips"></i>系统日志</a></dd>
                    </dl>
                </li>
            </ul>

        </div>
    </div>


    <!--Boby-->
    @RenderBody()

    <!--Footer-->
    <div class="fly-footer">
        <p>
            <a href="https://todo369.top/">Todo369</a> - 2019 © 369

        </p>
        <p><a href="https://beian.miit.gov.cn/" target="_blank">京ICP备18054890号-3</a></p>
        <p>
            本站所有信息均采集于互联网,若有侵权请联系：<a href="mailto:qctvip@vip.163.com">qctvip@vip.163.com</a>
        </p>

    </div>
    <script src="/res/layui/layui.js"></script>
    <script>

    </script>
    <script>
        layui.config({
            base: '/res/mods/'
        }).extend({
            fly: 'index'
        }).use('fly');
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>